#define _CRT_SECURE_NO_WARNINGS 1
#include "LTNode.h"

void Test1();

int main()
{
	Test1();
	return 0;
}

void Test1()
{
	LTNode* plist = NULL;
	plist = Init();

	LTPushBack(plist, 1);
	LTPushBack(plist, 2);
	LTPushBack(plist, 3);
	LTPushBack(plist, 4);
	LTPushBack(plist, 5);
	LTPushBack(plist, 6);
	LTPrintf(plist);

	LTPopBack(plist);
	LTPopBack(plist);
	LTPopBack(plist);
	LTPrintf(plist);

	LTPushFront(plist, 10);
	LTPushFront(plist, 20);
	LTPushFront(plist, 30);
	LTPrintf(plist);

	LTPopFront(plist);
	LTPrintf(plist);

	LTNode *pos = LTFind(plist, 10);
	LTInsert(pos, 66);
	LTPrintf(plist);
	LTErase(pos);
	LTPrintf(plist);

	LTDestroy(plist);
	plist = NULL;

}